<%-- 
    Document   : newjsp
    Created on : 20-10-2012, 09:42:37
    Author     : Tran Nguyen Anh Tu
--%>
<%@page import="Model.ObjectBean.ViewBean.LoginStatus"%>
<%-- 
    Module   : Change User Info   
    Tag:
        - CustomTag.tld (Tab Lib Descriptor)
        - CitySelectorTag.java (Custom Tag)
        - DateSelectorTag.java (Custom Tag)
        - GenderSelectorTag.java (Custom Tag)
    Bean:
        - ExampleUserInfo (Example Bean)
    JSP: 
        - changeuserinfo.jsp (Main page)
        - user-changeinfoJSP.jsp (Content page)
    Servlet:
        - ChangeInfoServlet.java (Validate/Save)
        - WelcomeServlet.java (Session Bean init)
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Green</title>
        <link rel="stylesheet" type="text/css" href="layout.css" />   
         <jsp:useBean id="status" class="LoginStatus" scope="session"/>
    </head>

    <body >
        <center>
            <%--HEADER TABLE--%>
            <table class="header" >
                <tr>
                    <td id="header-logo" />
                    <td id="header-login">
                                                <%if(status.getStatus().equals("true")){%>
                        <jsp:include page="../ComponentJSP/HeaderJSP/Logged.jsp"/>   
                        <%} else {%>
                        <jsp:include page="../ComponentJSP/HeaderJSP/LoginJSP.jsp"/>   
                        <%}%>                   
                    </td>
                </tr>
            </table>
            <%--BODY TABLE--%>
            <table class="body">
                <%--TOP BAR: BOOK | EBOOK | MAGAZINE--%>
                <tr>
                    <td colspan="3">
                        <jsp:include page="../ComponentJSP/TopBarJSP/TopbarJSP.jsp"/>   
                    </td>
                </tr>
                <%--SEARCH BAR: SEARCH | CART--%>
                <tr >
                    <td id="search-bar" colspan="2">
                        <jsp:include page="../ComponentJSP/TopBarJSP/SearchJSP.jsp"/>
                    </td>
                    <td id="cart-bar">
                        <jsp:include page="../ComponentJSP/TopBarJSP/CartJSP.jsp"/>
                    </td>
                </tr>
                
                <tr>
                    <%--SIDE NAVIGATOR --%>
                    <td id="nav-container">
                        <jsp:include page="../ComponentJSP/SideBarJSP/SideNavigatorJSP.jsp"/>
                    </td>
                    <%--CONTENT --%>
                    
                    <td id="content-container" colspan="2">
                        <jsp:include page="../ComponentJSP/ContentJSP/user-changeinfoJSP.jsp"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <jsp:include page="/WEB-INF/ComponentJSP/FooterJSP/SitemapJSP.jsp"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <jsp:include page="/WEB-INF/ComponentJSP/FooterJSP/FooterJSP.jsp"/>
                    </td>
                </tr>  
                <%--COLUMN SPACING ROW--%>
                <tr>
                    <td width="215px"></td>
                    <td></td>
                    <td width="425px"></td>
                </tr>
            </table>
        </center>              
    </body> 
</html>
